package source.javadog.bean;

import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Author : manyu
 * Date: 2018/9/9 17:11
 * Description:
 */
@Data
@Accessors(chain = true)
public class Person {

    @Id
    @Column(comment = "记录ID;")
    private int id ;

    @Column(updatable = false, comment = "名字")
    private String name;

    @Column(comment = "年龄")
    private int age;

}
